package org.ykhl.mq.commons;

/**
 * Created by zkf on 5/16/16.
 */
public class BaseMessagePojoImpl implements BaseMessage {
    private MessageType messageType;
    private String topic;
    private String hospitalId;
    private String hospitalName;
    private String dataType;
    private String dataVersion;
    private String ruleName;
    private String appServerId;
    private String appServerName;
    private String appId;
    private String messageBody;
    private String messageBodyMd5;
    private String flowId;
    private String timestamp;
    private String requestId;
    private String fid;
    private String deviceSign;
    private String appSecretKey ;
    private String extendSet;

    @Override
    public BaseMessage newCopy() throws CloneNotSupportedException {
        return (BaseMessage)super.clone();
    }

    @Override
    public MessageType getMessageType() {
        return messageType;
    }

    @Override
    public void setMessageType(MessageType messageType) {
        this.messageType = messageType;
    }

    @Override
    public String getTopic() {
        return topic;
    }

    @Override
    public void setTopic(String topic) {
        this.topic = topic;
    }
    @Override
    public String getHospitalId() {
        return hospitalId;
    }

    @Override
    public void setHospitalId(String hospitalId) {
        this.hospitalId = hospitalId;
    }

    @Override
    public String getHospitalName() {
        return hospitalName;
    }

    @Override
    public void setHospitalName(String hospitalName) {
        this.hospitalName = hospitalName;
    }

    @Override
    public String getDataType() {
        return dataType;
    }

    @Override
    public void setDataType(String dataType) {
        this.dataType = dataType;
    }

    @Override
    public String getDataVersion() {
        return dataVersion;
    }

    @Override
    public void setDataVersion(String dataVersion) {
        this.dataVersion = dataVersion;
    }

    @Override
    public String getAppServerId() {
        return appServerId;
    }

    @Override
    public void setAppServerId(String appServerId) {
        this.appServerId = appServerId;
    }

    @Override
    public String getAppServerName() {
        return appServerName;
    }

    @Override
    public void setAppServerName(String appServerName) {
        this.appServerName = appServerName;
    }

    @Override
    public String getAppId() {
        return appId;
    }

    @Override
    public void setAppId(String appId) {
        this.appId = appId;
    }

    @Override
    public String getMessageBody() {
        return messageBody;
    }

    @Override
    public void setMessageBody(String messageBody) {
        this.messageBody = messageBody;
    }

    @Override
    public String getMessageBodyMd5() {
        return messageBodyMd5;
    }

    @Override
    public void setMessageBodyMd5(String messageBodyMd5) {
        this.messageBodyMd5 = messageBodyMd5;
    }

    @Override
    public String getFlowId() {
        return flowId;
    }

    @Override
    public void setFlowId(String flowId) {
        this.flowId = flowId;
    }

    @Override
    public String getTimestamp() {
        return timestamp;
    }

    @Override
    public void setTimestamp(String timestamp) {
        this.timestamp = timestamp;
    }

    @Override
    public String getRequestId() {
        return requestId;
    }

    @Override
    public void setRequestId(String requestId) {
        this.requestId = requestId;
    }

    @Override
    public String getFid() {
        return fid;
    }

    @Override
    public void setFid(String fid) {
        this.fid = fid;
    }

    @Override
    public String getDeviceSign() {
        return deviceSign;
    }

    @Override
    public void setDeviceSign(String deviceSign) {
        this.deviceSign = deviceSign;
    }


    @Override
    public void setAppSecretKey(String appSecretKey) {
        this.appSecretKey = appSecretKey;
    }
    @Override
    public String getAppSecretKey() {
        return appSecretKey;
    }

    @Override
    public String getExtendSet() {
        return extendSet;
    }
    @Override
    public void setExtendSet(String extendSet) {
        this.extendSet = extendSet;
    }


    @Override
    public String toString() {
        return "BaseMessagePojoImpl{" +
                "messageType=" + getMessageType() +
                ", topic='" + getTopic() + '\'' +
                ", hospitalId='" + getHospitalId() + '\'' +
                ", hospitalName='" + getHospitalName() + '\'' +
                ", dataType='" + getDataType() + '\'' +
                ", dataVersion='" + getDataVersion() + '\'' +
                ", appServerId='" + getAppServerId() + '\'' +
                ", appServerName='" + getAppServerName() + '\'' +
                ", appId='" + getAppId() + '\'' +
                ", messageBodyMd5='" + getMessageBodyMd5() + '\'' +
                ", flowId='" + getFlowId() + '\'' +
                ", timestamp='" + getTimestamp() + '\'' +
                ", requestId='" + getRequestId() + '\'' +
                ", fid='" + getFid() + '\'' +
                ", deviceSign='" + getDeviceSign() + '\'' +
                ", appSecretKey='" + getAppSecretKey() + '\'' +
                ", extendSet='" + getExtendSet() + '\'' +
                ", messageBody='" + getMessageBody() + '\'' +
                '}';
    }
}
